package com.servlet.hello;

import javax.servlet.*;
import javax.servlet.annotation.WebServlet;
import java.io.IOException;

/**
 * @author wzm
 * @create 2023-11-04 15:17
 * project_name:web2310
 * @Description
 */
//一个servlet配置多个访问地址
//@WebServlet(urlPatterns = {"/hello03","/hello0301","/hello0302","/demo"})

//精确匹配访问路径
//@WebServlet(urlPatterns = "/user/login")

//目录匹配
//@WebServlet(urlPatterns = "/user/*")

//扩展名匹配
//@WebServlet(urlPatterns = "*.do")

//任意匹配
//@WebServlet(urlPatterns = "/")
//@WebServlet(urlPatterns = "/*")

public class HelloServlet03 implements Servlet {
    @Override
    public void init(ServletConfig servletConfig) throws ServletException {


    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("执行了");
    }

    @Override
    public String getServletInfo() {
        return null;
    }

    @Override
    public void destroy() {

    }
}
